<?php echo form_open(base_url().'journal/admin/teachers/edit/'.$id_teacher); ?>
  <fieldset>
  	 <?foreach($name_teacher as $result) {?>
     <p><font color=#C40000>*</font> <?=lang('name_teacher')?>:</p><input name="name" type="text" autocomplete="on" maxlength="60" value="<?if($result['name']) echo $result['name']; else echo set_value('name');?>" required> <?echo form_error('name');?>
     <p><font color=#C40000>*</font> <?=lang('admin_login')?>:</p><input name="login" type="text" autocomplete="on" maxlength="30" value="<?if($result['login']) echo $result['login']; else echo set_value('login');?>" required> <?echo form_error('login');?>
     <p><font color=#C40000>*</font> <?=lang('admin_password')?>:</p><input name="password" type="password" autocomplete="on" maxlength="30" required> <?echo form_error('password');?>
     <p><font color=#C40000>*</font> <?=lang('admin_repassword')?>:</p><input name="repassword" type="password" autocomplete="on" maxlength="30" required> <?echo form_error('repassword');?>
     <p><font color=#C40000></font> <?=lang('admin_phone')?>:</p><input name="phone" type="text" autocomplete="on" maxlength="30" value="<?if($result['phone']) echo $result['phone']; else echo set_value('phone');?>"> <?echo form_error('phone');?>
     <p><input name="edit_teacher_submit" type="submit" value="<?=lang('admin_button_update')?>"></p>
     <?}?>
  </fieldset>
</form>